package zhongbo.javaweb.instagram.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 说明：
 *
 * @author zhongboWork
 * @version 1.0
 * @since 2021-12-24 17:10
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel(value = "系统配置", description = "rest 返回对象结构模型")
public class Config extends BaseModel {

    @ApiModelProperty(name = "新建任务时默认线程数量", value = "默认线程数")
    private int threadSize;
    @ApiModelProperty(name = "每次下载后休眠间隔,单位毫秒ms", value = "下载间隔")
    private long sleepTimeMs;
    @ApiModelProperty(name = "一次任务执行完成后间隔时间,单位毫秒ms", value = "任务间隔")
    private long sleepTaskMs;

    @ApiModelProperty(name = "检测用户登录状态网址", value = "用户检测网址")
    private String userCheckUrl;
    @ApiModelProperty(name = "检测代理可用状态网址", value = "代理检测网址")
    private String proxyCheckUrl;
    @ApiModelProperty(name = "没有使用,默认浏览器User-Agent", value = "默认UA")
    private String defaultUserAgent = "";

    @ApiModelProperty(name = "当没有任务在执行时,是否自动创建任务", value = "自动创建任务")
    private boolean autoCreateTask;
    @ApiModelProperty(name = "自动创建任务间隔时间(分钟)", value = "任务创建间隔(分钟)")
    private int autoCreateTaskInterval;

    @ApiModelProperty(name = "是否检测用户登录状态", value = "是否检测用户")
    private boolean userCheck;
}
